# -*- coding: utf-8; mode: snippet -*-
# name: $scope.fname= function() { ... } (angular)
# key: af
# group: angular
# contributor: Chen Bin <chenbin DOT sh AT gmail>
# --
$scope.${1:init} = function() {
  $0
  console.log('$scope.${1:$(yas/substr yas-text "[^ ]*")} called');
};